package com.njmt.cloud.msprovder.controller;

import com.njmt.cloud.msprovder.service.UserService;
import com.njwt.cloud.mscommon.pojo.vo.UserVo;
import com.njwt.cloud.mscommon.support.ApiResponse;
import com.njwt.cloud.mscommon.support.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author <a href="mailto:xingxiaofeng@gtmap.cn">xingxiaofeng</a>
 * @date 2022-06-07
 * @desc UserController
 */
@RestController
@RequestMapping("/user")
public class UserController extends BaseController{
    
  @Autowired
  private UserService userService;
    /**
     * describe: 获取用户信息
     * @param:
     * @return:
     * @author: xingxiaofeng
     * create_date: ${DATE}
     * create_time: ${TIME}
     **/
    @GetMapping("/getuserinfo")
    public ApiResponse getUserList(@RequestBody Map map){
       List<UserVo> list= userService.queryUserList(map);
        return success(list);
    }
}
